package org.example.Command;

import lombok.Data;

import java.util.HashMap;

import static org.example.Utils.StringUtils.getNext;

@Data
public class ShowMessage extends Command {
    private Boolean showAll = false;

    public ShowMessage(String commandStr, HashMap<String, String> args) {
        super(commandStr, args, SHOW_COMMAND);
        this.SequenceId = getNext();
    }

    @Override
    public void check() throws Exception {
        if (args.get("-a") != null) this.showAll = true;
    }
}
